﻿using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using EncuentraloSilverlight.ServiceReference2;
using System.Windows.Navigation;
using System.Windows.Browser;
using System.IO;
using System.Windows.Media.Imaging;
using System.Xml;
using System.Collections;
using System.Collections.ObjectModel;
namespace EncuentraloSilverlight
{
    public partial class ViewProduct : Page
    {
        public ViewProduct()
        {
            InitializeComponent();
        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            string parameter = Cookie.GetCookie("SelectedProduct");
            string[] splitParameter = parameter.Split(',');
            textboxNombreProducto.Text = splitParameter[0];
            textboxPrecioProducto.Text = splitParameter[1];
            textboxDescripcionProducto.Text = splitParameter[2];
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/Seller_View.xaml", UriKind.Relative));
        }
        

        private void Salir(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/Views/Seller_View.xaml", UriKind.Relative));
        }
    }
}
